package com.zxm.sunshineaiary.util;

import com.zxm.sunshineaiary.activity.R;

public class BackGroundControl {

	private static final int TEXT_WHITE = 0;
	private static final int TEXT_BLACK = 1;

	private static final int BACKGROUD_WHITE=0;
	private static final int BACKGROUD_PINK=1;
	private static final int BACKGROUD_COLOR=2;
	
	private static int colorControl = 0;

	/**
	 * 
	 * 获得文字颜色的Id
	 * 
	 * @param textColor
	 * @return
	 */
	public static int getTextColorId() {
		int id = 0;
		switch (colorControl) {
		case TEXT_WHITE:
			id = R.color.white;
			break;
		case TEXT_BLACK:
			id = R.color.black;
			break;
		}
		return id;
	}
	
	/**
	 * 获得背景图片Id
	 * @return
	 */
	public static int getBackgroundId(){
		return colorControl;
	}

	public static void setTextColor(int color) {
		colorControl = color;
	}
}
